<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" id="viewport" content="width=device-width, initial-scale=1">
    <title>现工作状态</title>
    <link rel="stylesheet" href="../../front/css/common.css">
    <script type="text/javascript" src="../../front/js/jquery.min.js"></script>
    <script type="text/javascript" src="../../front/js/common.js"></script>
</head>
<body>

<div class="ly_header header2">现工作状态
    <div class="ly_left goback"><img src="../../front/image/gobackbai.png" alt=""></div>
    <div class="ly_right submitform" style="font-size: 0.8em;">保存</div>
</div>
<div class="newworkmain selectlabel">
    <form id="submitform" th:action="@{/common/toUpload.action}" method="post">
        <div class="information dw">
            <div class="color9" style="padding-bottom: 14px;padding-top: 10px;">现工作状态</div>
        </div>
        <div class="information dw">
            <div class="informationname">工作状态类型：</div>
            <div class="informationinput selectnewwork text7" th:switch="${memberAuthenticationInfoVO.currentJobState}">
                <span th:case="EMPLOYMENT">就业</span>
                <span th:case="SELF_EMPLOYMENT">自主</span>
                <span th:case="SELF_EMPLOYMENT">自主</span>
            </div>
            <input class="informationinput" name="currentJobState" th:value="${memberAuthenticationInfoVO.currentJobState}" type="hidden" readonly>
            <span class="triangle dw_r color9">选择</span>
        </div>
        <div class="information dw company hide">
            <div class="informationname">单位名称：</div>
            <input class="informationinput" name="company" th:value="${memberAuthenticationInfoVO.company}" type="text">
        </div>
        <input type="hidden" name="infoType" value="NOW_WORK_INFO">
    </form>
</div>
<div id="mask" class="hide"></div>
<div class="hide newworkselect drop-down">
    <div class="ly_header">工作状态类型
        <div class="ly_left newworkno"><img src="../../front/image/no.png" alt=""></div>
        <div class="ly_right newworkyes"><img src="../../front/image/yes.png" alt=""></div></div>
    <div class="insteadOf"></div>
    <ul class="newworklist selectlist" style="">
        <li dataval="EMPLOYMENT">就业</li>
        <li dataval="STARTUP">创业</li>
        <li dataval="JOB_WAITING">待业</li>
    </ul>
</div>
</body>
<script type="text/javascript" src="../../front/js/information.js"></script>
<script>
    $(document).on("click",".submitform",function(){
        $.ajax({
            url: "/tiance/front/memberCenter/applyMemberAuth.action",
            type: "post",
            data: $('#submitform').serialize(), //发送数据,
            dataType: "json",
            async: false,
             success: function(data){
                if(data.success){
                    window.location.href='toApplyMemberAuth.action';
                }else{
                    alert('提交是失败！')
                }
             },
             error:function(){
                alert()
             }
         });
    })
</script>
</html>